from django.contrib import admin

from commodity.models import Product,Type_1,Type_2


# Register your models here.

@admin.register(Product)
class ProductAdmin(admin.ModelAdmin):
    list_display = ('id','name','price','likes','sold','create_time','img')

@admin.register(Type_1)
class TypeAdmin(admin.ModelAdmin):
    list_display = ('id','first')

@admin.register(Type_2)
class TypeAdmin(admin.ModelAdmin):
    list_display = ('id','second')
